.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  visibility: hidden;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, .3);
  transition: visibility 0.6s, opacity 0.6s;
  z-index: 3;
}

.overlay_active {
  visibility: visible;
  opacity: 1;
}
